package cn.qlu.yhy.service.impl;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.qlu.yhy.dao.IBookDao;
import cn.qlu.yhy.model.Book;
import cn.qlu.yhy.model.Page;
import cn.qlu.yhy.model.enumpack.BookClassify;
import cn.qlu.yhy.model.enumpack.BookType;
import cn.qlu.yhy.service.IBookService;

@Service
public class BookServiceImpl implements IBookService {

    @Autowired
    private IBookDao bookDao;

    @Override
    public boolean deleteBook(int bookId) {
        return bookDao.deleteBook(bookId);
    }

    @Override
    public boolean updateBook(Book book) {
        return bookDao.updateBook(book);
    }

    @Override
    public boolean createBook(Book book) {
        return bookDao.createBook(book);
    }

    @Override
    public Book getBookByBookId(int bookId) {
        return bookDao.getBookByBookId(bookId);
    }

    @Override
    public List<Book> findBooksAllByUserId(int userId, Page page) {
        return bookDao.findBooksAllByUserId(userId, page);
    }

    @Override
    public List<Book> findBooksByBookNAP(String bookNAP) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public List<Book> findBooksByBookType(BookType bookType) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public List<Book> findBooksByBookClassify(BookClassify bookClassify) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public List<Book> findBooksByAuthor(String author) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public List<Book> findBooksByPress(String press) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public List<Book> findBooksByDescription(String description) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public List<Book> findBooksByCreateDate(Date startDate, Date endDate) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public List<Book> findBooksAll() {
        // TODO Auto-generated method stub
        return null;
    }
}
